<?php
	class chuyenmucbs
	{
		public $MaChuyenMuc = 0;
		public $TenChuyenMuc = "";
		
		public function Them()
		{
			$db = new chuyenmucdb();
			return $db->Them($this->MaChuyenMuc, 
							 $this->TenChuyenMuc);
		}
		
		public function CapNhat()
		{
			$db = new chuyenmucdb();
			return $db->CapNhat($this->MaChuyenMuc,
							    $this->TenChuyenMuc);
		}
		
		public function TonTaiTrongLoaiChuyenMuc()
		{
			$db = new chuyenmucdb();
			return $db->TonTaiTrongLoaiChuyenMuc($this->MaChuyenMuc);
		}
		
		public function Xoa()
		{
			$db = new chuyenmucdb();
			return $db->Xoa($this->MaChuyenMuc);
		}
		
		public function XoaTatCa()
		{
			$db = new chuyenmucdb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new chuyenmucdb();
			return $db->LayDanhSach($this->MaChuyenMuc,
									$this->TenChuyenMuc);
		}
	}
?>